import request from '@/utils/request'

// 分页查询接口权限列表
export function limitList(data) {
  return request({
    url: '/sys/app/user/limit/list',
    method: 'post',
    data: data
  })
}

// 打开关闭
export function limitShelves(id) {
  return request({
    url: `/sys/app/user/limit/shelves/${id}`,
    method: 'put',
  })
}

// 新增接口权限验证
export function addOrUpdate(data) {
  return request({
    url: '/sys/app/user/limit/addOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除接口权限验证
export function limitDelete(id) {
  return request({
    url: `/sys/app/user/limit/delete/${id}`,
    method: 'delete',
  })
}
